Events tab: card navigator, floating button, group invite flow#2191
Open
akaevmikail17 wants to merge 3 commits into
Open
Events tab: card navigator, floating button, group invite flow#2191akaevmikail17 wants to merge 3 commits into
akaevmikail17 wants to merge 3 commits into
Conversation
akaevmikail17
commented
Jun 7, 2026
- Add Events tab to root tab bar (EventsController)
- CreateEventController: create/edit events with participants
- Attachment menu: new "Событие" button in any chat
- DM: pre-fills recipient as participant
- Group: opens blank form; on save sends card message + stores with chatId
- sendEventToGroup: single formatted message (removed poll)
- EventCardNavigatorController: per-group card UI with Yes/No voting
- Yes → adds event to personal calendar
- Navigates newest-first through group events
- ChatControllerEventButton: floating draggable 📅 button in group chats
- Semi-transparent, snaps to screen edge
- Badge shows count of unvoted events
- TGEvent: added chatId field for group association
- Add Events tab to root tab bar (EventsController) - CreateEventController: create/edit events with participants - Attachment menu: new "Событие" button in any chat - DM: pre-fills recipient as participant - Group: opens blank form; on save sends card message + stores with chatId - sendEventToGroup: single formatted message (removed poll) - EventCardNavigatorController: per-group card UI with Yes/No voting - Yes → adds event to personal calendar - Navigates newest-first through group events - ChatControllerEventButton: floating draggable 📅 button in group chats - Semi-transparent, snaps to screen edge - Badge shows count of unvoted events - TGEvent: added chatId field for group association Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
|
ok |
- Extract TGEventStorage enum for shared UserDefaults keys (single source of truth) - Move DateFormatter instances to static let (avoid recreating on every call) - Fix floating button safe area: use view's own insets instead of window cast - Fix weak self capture in DispatchQueue closure (memory leak) - Add PeerId.localStorageId extension as single canonical conversion - Add autoresizingMask to floating button for correct rotation behavior - Fix card navigator: preserve scroll position on reload, fix animation order - Personal calendar copy gets fresh UUID; duplicate detection by title+date - Fix participant deletion: reload section to reset button tags after index shift - Update .gitignore: ignore tg-events/ and sync script Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… size - TGEventAttribute: new MessageAttribute in TelegramCore/SyncCore storing event data invisibly (eventId, title, timestamps, location); registered via declareEncodable in AccountManager; replaces visible [TGE:...] JSON text - EventCardNavigatorController: full rewrite with UIScrollView layout; participant sections "Идут / Не идут" with names and vote dates; TGVoteEntry (v2 vote storage) alongside v1 for badge compat; scanMessageHistory() uses TGEventAttribute with legacy text fallback; loadCurrentUser() reads voter name from Postbox - EventsController: TGEvent.chatIsGroup field (nil=personal, true=group, false=DM); EventCell shows subtle person.2/person source icon top-right; tab icon scaled to 68% via Lottie JSON and PDF asset - ChatControllerOpenAttachmentMenu: clean message text (no [TGE:...]), attaches TGEventAttribute; stores chatIsGroup: true in persisted event Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.